package com.gitee.neuray.security.admin.menu.entity;

import com.gitee.neuray.security.common.entity.BaseEntity;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Transient;

import java.util.Date;
import java.util.List;

/**
 * 代码生成
 *
 * @author zhoyou
 * @email ${email}
 * @date 2020-03-12 05:43:38
 */
@Data
@Table(name = "ADMIN_MENU")
public class AdminMenuEntity extends BaseEntity {


		/**
	 * 路径编码
	 */
	@Column(name = "CODE")
	private String code;
	
		/**
	 * 标题
	 */
	@Column(name = "TITLE")
	private String title;
	
		/**
	 * 父级节点
	 */
	@Column(name = "PARENT_ID")
	private String parentId;
	
		/**
	 * 资源路径
	 */
	@Column(name = "URI")
	private String uri;
	
		/**
	 * 图标
	 */
	@Column(name = "ICON")
	private String icon;
	
		/**
	 * 资源类型菜单类型（base基础菜单，biz业务菜单，system系统菜单）
	 */
	@Column(name = "TYPE")
	private String type;
	
		/**
	 * 排序
	 */
	@Column(name = "ORDER_NUM")
	private Integer orderNum;
	
		/**
	 * 描述
	 */
	@Column(name = "DESCRIPTION")
	private String description;
	
		/**
	 * 菜单上下级关系
	 */
	@Column(name = "PATH")
	private String path;
	
		/**
	 * 启用禁用
	 */
	@Column(name = "ENABLED")
	private Boolean enabled;
	
		/**
	 * 
	 */
	@Column(name = "PERMISSION_ID")
	private String permissionId;

	/**
	 * 子集
	 */
	@Transient
	private List<AdminMenuEntity> children;

	/**
	 * 菜单类型
	 */
	@Column(name = "ATTR1")
	private String attr1;

	/**
	 * 请求所属服务
	 */
	@Column(name = "ATTR2")
	private String attr2;

	/**
	 * 子集
	 */
	@Transient
	private boolean	typeBool;
}
